#include <iostream>
#include <cstdio>
#include "Logbook.h"

using namespace std;

int main()
{
    int month,year;
    //char q=getchar();
    while(1)
    {
        cin>>month>>year;
		if (month==0)
			goto exit0;
        Logbook coffee (month,year);
        //int day;
        coffee.putEntry(1,5);
        coffee.putEntry(15,2);
        cout<<"Month/Year: "<<coffee.getMonth()<<"/"
            <<coffee.getYear()<<" has days "
            <<coffee.getDaysInMonth()<<"."<<endl;
        //for(day=1;day<=coffee.getDaysInMonth();day++)
        //    cout<<day<<" : "<<coffee.getEntry(day)<<endl;
        //q=getchar();
    }
exit0:
	return 0;
}
